import React, { useState } from 'react';
import { Select } from 'antd';
import './index.less';
//
// 下拉框组件
//
export default function index(props: any) {
  const { data, handleChange, values } = props;

  return (
    <div className="content-title-select">
      <span className="label">请选择时间：</span>
      <Select
        value={values}
        style={{ width: 160, marginTop: '-5px' }}
        onChange={handleChange}
        options={data}
      />
    </div>
  );
}
